//
//  HomeVIewVM.m
//  community
//
//  Created by 小崔 on 2020/5/29.
//  Copyright © 2020 小崔. All rights reserved.
//

#import "HomeVIewVM.h"

@implementation HomeVIewVM

- (instancetype)init
{
    self = [super init];
    if (self) {
        [self bannerLoad];
    }
    return self;
}
-(void)exchange{
    @weakify(self);
    [self.homeBannerModel getNetWorkImageUrl:^(NSArray * _Nonnull arr) {
        @strongify(self);
        if (arr.count > 0) {
//            NSLog(@"arr%@",arr);
            [self.netImages addObjectsFromArray:arr];
//            NSLog(@"VM-netImage%@",self.netImages);
            self.homeBannerUpdata = YES;
        }else{
            self.homeBannerUpdata = NO;
        }
    }];
}
-(void)bannerLoad{
    self.homeBannerModel = [HomeBannerModel new];
    self.netImages = [NSMutableArray new];
}
@end
